<div class="users form">
{{if $current_action=='admin_add'}}
<?php 
echo $this->MForm->create($current_model,array(    
	'url' => array('action' => 'add'),
));
?>
{{elseif $current_action=='admin_edit'}}
 <?php 

 echo "<p class='alert alert-warning'>积分记录产生后，不支持修改变更</p>";

 exit;

echo $this->MForm->create($current_model,array(
    'url' => array('action' => 'edit',$id,$copy),
));
?>
{{/if}}
    <fieldset>
    
    {{$this->MForm->input('id')}}
    <?php
    
    echo $this->MForm->input('rule_id');		
    echo $this->MForm->input('user_id',array('type'=>'textarea','label'=>'操作用户','after'=>'批量操作用户时，一行一个'));

    echo $this->MForm->input('user_type',array('type'=>'select','label'=>'用户标示类型','default'=>'id','options'=> array('id'=>'用户编号','email'=>'用户邮箱','mobile'=>'用户手机')));

	echo $this->MForm->input('score',array('after'=>'<p>若减少积分时，可设为负数</p>'));
?>
    </fieldset>
    <div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="{{__('Submit')}}"></div>
	</div>
<?php echo $this->MForm->end();?>
</div>
